package com.jxstyle.core.util;

public class ThreadLocalUtils {

	private static ThreadLocal<Boolean> isAjax = new ThreadLocal<>();

	public static boolean getIsAjax() {
		if (isAjax.get() == null) {
			return false;
		}
		return isAjax.get();
	}

	public static void setIsAjax(boolean isAjax) {
		ThreadLocalUtils.isAjax.set(isAjax);
	}

	public static void removeIsAjax() {
		ThreadLocalUtils.isAjax.remove();
	}

}
